package com.yunti.business.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunti.business.service.ITestService;
import com.yunti.business.domain.TestParam;
import com.yunti.business.mapper.TestMapper;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.SecurityUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Objects;

@Service
@Slf4j
public class TestServiceImpl extends ServiceImpl<TestMapper, TestParam> implements ITestService
{
    @Override
    public List<TestParam> findList(TestParam testParam) {
//        SysUser user = SecurityUtils.getLoginUser().getUser();
//        log.info("登录信息：{}",user);
        LambdaQueryWrapper<TestParam> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(Objects.nonNull(testParam.getTestValue()), TestParam::getTestValue, testParam.getTestValue());
        return this.list(queryWrapper);
    }
}
